<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Java Editor Folding Preferences</title>
<link rel="stylesheet" href="../../../../book.css" charset="ISO-8859-1" type="text/css">
<script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js" type="text/javascript"> </script>
</head>
<body>
<h1>Java Editor Folding Preferences</h1>
<p>Indicate your preferences for the Folding settings on the <a class="command-link" href='javascript:executeCommand("org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.jdt.ui.preferences.FoldingPreferencePage)")'> <img src="PLUGINS_ROOT/org.eclipse.help/command_link.svg" alt="Opens the Folding preference page"><b> Java &gt; Editor &gt; Folding </b></a> preference page.</p>
<table border="1" cellspacing="0" cellpadding="5" summary="Folding settings">
	<thead>
		<tr>
			<th>
			<p>Option</p>
			</th>
			<th>
			<p>Description</p>
			</th>
			<th>
			<p>Default</p>
			</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td valign="top">
			<p>Enable folding</p>
			</td>
			<td valign="top">
			<p>If enabled, different sections in the Java editor can be folded and expanded.</p>
			</td>
			<td valign="top">
			<p>On</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Comments</p>
			</td>
			<td valign="top">
			<p>If enabled, comments are folded when opening a new editor.</p>
			</td>
			<td valign="top">
			<p>Off</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Header Comments</p>
			</td>
			<td valign="top">
			<p>If enabled, header Comments are folded when opening a new editor.</p>
			</td>
			<td valign="top">
			<p>On</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Inner types</p>
			</td>
			<td valign="top">
			<p>If enabled, inner types are folded when opening a new editor.</p>
			</td>
			<td valign="top">
			<p>Off</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Members</p>
			</td>
			<td valign="top">
			<p>If enabled, Java members are folded when opening a new editor.</p>
			</td>
			<td valign="top">
			<p>Off</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Imports</p>
			</td>
			<td valign="top">
			<p>If enabled, imports are folded when opening a new editor.</p>
			</td>
			<td valign="top">
			<p>On</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Custom Folding regions</p>
			</td>
			<td valign="top">
			<p>If enabled, custom folding regions are folded when opening a new editor.</p>
			</td>
			<td valign="top">
			<p>Off</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Extended folding (experimental) \ Activate feature</p>
			</td>
			<td valign="top">
			<p>If enabled, folding will be active for several other kinds of code blocks like loops, if statements, etc.</p>
			</td>
			<td valign="top">
			<p>Off</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Custom folding regions \ Enable folding of custom regions</p>
			</td>
			<td valign="top">
			<p>If enabled, custom regions can be folded in the editor.</p>
			</td>
			<td valign="top">
			<p>Off</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Custom folding regions \ Text marking start of region</p>
			</td>
			<td valign="top">
			<p>Comments starting with the content of this option indicate the start of custom folding regions.</p>
			</td>
			<td valign="top">
			<p>region</p>
			</td>
		</tr>
		<tr>
			<td valign="top">
			<p>Custom folding regions \ Text marking end of region</p>
			</td>
			<td valign="top">
			<p>Comments starting with the content of this option indicate the end of custom folding regions.</p>
			</td>
			<td valign="top">
			<p>endregion</p>
			</td>
		</tr>
	</tbody>
</table>
<p>
Custom folding regions allow creating regions to fold using a marker text for the start and end of the region in a comment.
Leaving the fields for the start or end markers empty disables this feature.
</p>
<h3 class="related">Related References</h3>
<a href="../ref-preferences-editor.htm">Java Editor preference page</a>
</body>
</html>
